package com.kelaite.procurement.dto;

import java.util.Date;

import org.apache.commons.lang3.StringUtils;

public class PurchaseOrderPaymentDTO {

	private Long id;

	private PurchaseOrderDTO tPurchaseOrder;

	private String displayOrderNo; // 序列号，每个po_id从1开始编

	private short milestoneType;

	private Date planTime;

	private Date realTime;

	private Integer percentage;

	private Long planAmount;

	private Float increamentTax;

	private Float amountWithoutTax;

	private Long billedAmount;

	private Long paidAmount;

	private Date billedTime;

	private Date paidTime;

	private Integer deliveryNote1; // 是否有送货单

	private String deliveryNoteAttachment1; // 送货单图片地址

	private Integer deliveryNoteAttachmentStatus1;

	private Integer deliveryNote2;

	private String deliveryNoteAttachment2;

	private Integer deliveryNoteAttachmentStatus2;

	private Integer acceptanceReport; // 是否有验收报告

	private String acceptanceReportAttachment;

	private Integer acceptanceReportAttachmentStatus;

	private String invoiceAttachment1; // 发票附件

	private Integer invoiceAttachmentStatus1;

	private String invoiceAttachment2;

	private Integer invoiceAttachmentStatus2;

	private String orderPaymentRemark;

	private Date gmtCreateTime;

	private Date gmtUpdateTime;

	private String createdBy;

	private String updatedBy;

	private boolean isDelete;

	private String remark;

	private Long purchaseOrderId;

	public PurchaseOrderPaymentDTO() {

	}

	public Long getId() {

		return id;
	}

	public void setId(Long id) {

		this.id = id;
	}

	public String getDisplayOrderNo() {

		return displayOrderNo;
	}

	public void setDisplayOrderNo(String displayOrderNo) {

		this.displayOrderNo = displayOrderNo;
		if (StringUtils.isNotBlank(displayOrderNo)) {
			this.setMilestoneType(Short.parseShort(displayOrderNo));
		}
	}

	public short getMilestoneType() {

		return milestoneType;
	}

	public void setMilestoneType(short milestoneType) {

		this.milestoneType = milestoneType;
	}

	public Date getPlanTime() {

		return planTime;
	}

	public void setPlanTime(Date planTime) {

		this.planTime = planTime;
	}

	public Date getRealTime() {

		return realTime;
	}

	public void setRealTime(Date realTime) {

		this.realTime = realTime;
	}

	public Integer getPercentage() {

		return percentage;
	}

	public void setPercentage(Integer percentage) {

		this.percentage = percentage;
	}

	public Long getPlanAmount() {

		return planAmount;
	}

	public void setPlanAmount(Long planAmount) {

		this.planAmount = planAmount;
	}

	public Long getBilledAmount() {

		return billedAmount;
	}

	public void setBilledAmount(Long billedAmount) {

		this.billedAmount = billedAmount;
	}

	public Long getPaidAmount() {

		return paidAmount;
	}

	public void setPaidAmount(Long paidAmount) {

		this.paidAmount = paidAmount;
	}

	public Float getIncreamentTax() {

		return increamentTax;
	}

	public void setIncreamentTax(Float increamentTax) {

		this.increamentTax = increamentTax;
	}

	public Float getAmountWithoutTax() {

		return amountWithoutTax;
	}

	public void setAmountWithoutTax(Float amountWithoutTax) {

		this.amountWithoutTax = amountWithoutTax;
	}

	public Date getBilledTime() {

		return billedTime;
	}

	public void setBilledTime(Date billedTime) {

		this.billedTime = billedTime;
	}

	public Date getPaidTime() {

		return paidTime;
	}

	public void setPaidTime(Date paidTime) {

		this.paidTime = paidTime;
	}

	public Integer getDeliveryNote1() {

		return deliveryNote1;
	}

	public void setDeliveryNote1(Integer deliveryNote1) {

		this.deliveryNote1 = deliveryNote1;
	}

	public String getDeliveryNoteAttachment1() {

		return deliveryNoteAttachment1;
	}

	public void setDeliveryNoteAttachment1(String deliveryNoteAttachment1) {

		this.deliveryNoteAttachment1 = deliveryNoteAttachment1;
	}

	public Integer getDeliveryNoteAttachmentStatus1() {

		return deliveryNoteAttachmentStatus1;
	}

	public void setDeliveryNoteAttachmentStatus1(
			Integer deliveryNoteAttachmentStatus1) {

		this.deliveryNoteAttachmentStatus1 = deliveryNoteAttachmentStatus1;
	}

	public Integer getDeliveryNote2() {

		return deliveryNote2;
	}

	public void setDeliveryNote2(Integer deliveryNote2) {

		this.deliveryNote2 = deliveryNote2;
	}

	public String getDeliveryNoteAttachment2() {

		return deliveryNoteAttachment2;
	}

	public void setDeliveryNoteAttachment2(String deliveryNoteAttachment2) {

		this.deliveryNoteAttachment2 = deliveryNoteAttachment2;
	}

	public Integer getDeliveryNoteAttachmentStatus2() {

		return deliveryNoteAttachmentStatus2;
	}

	public void setDeliveryNoteAttachmentStatus2(
			Integer deliveryNoteAttachmentStatus2) {

		this.deliveryNoteAttachmentStatus2 = deliveryNoteAttachmentStatus2;
	}

	public Integer getAcceptanceReport() {

		return acceptanceReport;
	}

	public void setAcceptanceReport(Integer acceptanceReport) {

		this.acceptanceReport = acceptanceReport;
	}

	public String getAcceptanceReportAttachment() {

		return acceptanceReportAttachment;
	}

	public void setAcceptanceReportAttachment(String acceptanceReportAttachment) {

		this.acceptanceReportAttachment = acceptanceReportAttachment;
	}

	public Integer getAcceptanceReportAttachmentStatus() {

		return acceptanceReportAttachmentStatus;
	}

	public void setAcceptanceReportAttachmentStatus(
			Integer acceptanceReportAttachmentStatus) {

		this.acceptanceReportAttachmentStatus = acceptanceReportAttachmentStatus;
	}

	public String getInvoiceAttachment1() {

		return invoiceAttachment1;
	}

	public void setInvoiceAttachment1(String invoiceAttachment1) {

		this.invoiceAttachment1 = invoiceAttachment1;
	}

	public Integer getInvoiceAttachmentStatus1() {

		return invoiceAttachmentStatus1;
	}

	public void setInvoiceAttachmentStatus1(Integer invoiceAttachmentStatus1) {

		this.invoiceAttachmentStatus1 = invoiceAttachmentStatus1;
	}

	public String getInvoiceAttachment2() {

		return invoiceAttachment2;
	}

	public void setInvoiceAttachment2(String invoiceAttachment2) {

		this.invoiceAttachment2 = invoiceAttachment2;
	}

	public Integer getInvoiceAttachmentStatus2() {

		return invoiceAttachmentStatus2;
	}

	public void setInvoiceAttachmentStatus2(Integer invoiceAttachmentStatus2) {

		this.invoiceAttachmentStatus2 = invoiceAttachmentStatus2;
	}

	public String getOrderPaymentRemark() {

		return orderPaymentRemark;
	}

	public void setOrderPaymentRemark(String orderPaymentRemark) {

		this.orderPaymentRemark = orderPaymentRemark;
	}

	public Date getGmtCreateTime() {

		return gmtCreateTime;
	}

	public void setGmtCreateTime(Date gmtCreateTime) {

		this.gmtCreateTime = gmtCreateTime;
	}

	public Date getGmtUpdateTime() {

		return gmtUpdateTime;
	}

	public void setGmtUpdateTime(Date gmtUpdateTime) {

		this.gmtUpdateTime = gmtUpdateTime;
	}

	public String getCreatedBy() {

		return createdBy;
	}

	public void setCreatedBy(String createdBy) {

		this.createdBy = createdBy;
	}

	public String getUpdatedBy() {

		return updatedBy;
	}

	public void setUpdatedBy(String updatedBy) {

		this.updatedBy = updatedBy;
	}

	public boolean isDelete() {

		return isDelete;
	}

	public void setDelete(boolean isDelete) {

		this.isDelete = isDelete;
	}

	public PurchaseOrderDTO gettPurchaseOrder() {

		return tPurchaseOrder;
	}

	public Long getPurchaseOrderId() {

		return purchaseOrderId;
	}

	public void setPurchaseOrderId(Long purchaseOrderId) {

		this.purchaseOrderId = purchaseOrderId;
	}

	public void settPurchaseOrder(PurchaseOrderDTO tPurchaseOrder) {

		this.tPurchaseOrder = tPurchaseOrder;
	}

	public String getRemark() {

		return remark;
	}

	public void setRemark(String remark) {

		this.remark = remark;
	}

	@Override
	public String toString() {

		return "PurchaseOrderPaymentDTO [id=" + id + ", tPurchaseOrder="
				+ tPurchaseOrder + ", displayOrderNo=" + displayOrderNo
				+ ", milestoneType=" + milestoneType + ", planTime=" + planTime
				+ ", realTime=" + realTime + ", percentage=" + percentage
				+ ", planAmount=" + planAmount + ", increamentTax="
				+ increamentTax + ", amountWithoutTax=" + amountWithoutTax
				+ ", billedAmount=" + billedAmount + ", paidAmount="
				+ paidAmount + ", billedTime=" + billedTime + ", paidTime="
				+ paidTime + ", deliveryNote1=" + deliveryNote1
				+ ", deliveryNoteAttachment1=" + deliveryNoteAttachment1
				+ ", deliveryNoteAttachmentStatus1="
				+ deliveryNoteAttachmentStatus1 + ", deliveryNote2="
				+ deliveryNote2 + ", deliveryNoteAttachment2="
				+ deliveryNoteAttachment2 + ", deliveryNoteAttachmentStatus2="
				+ deliveryNoteAttachmentStatus2 + ", acceptanceReport="
				+ acceptanceReport + ", acceptanceReportAttachment="
				+ acceptanceReportAttachment
				+ ", acceptanceReportAttachmentStatus="
				+ acceptanceReportAttachmentStatus + ", invoiceAttachment1="
				+ invoiceAttachment1 + ", invoiceAttachmentStatus1="
				+ invoiceAttachmentStatus1 + ", invoiceAttachment2="
				+ invoiceAttachment2 + ", invoiceAttachmentStatus2="
				+ invoiceAttachmentStatus2 + ", orderPaymentRemark="
				+ orderPaymentRemark + ", gmtCreateTime=" + gmtCreateTime
				+ ", gmtUpdateTime=" + gmtUpdateTime + ", createdBy="
				+ createdBy + ", updatedBy=" + updatedBy + ", isDelete="
				+ isDelete + ", remark=" + remark + ", purchaseOrderId="
				+ purchaseOrderId + "]";
	}

}
